<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title><?php echo ($CONF['mallTitle']); ?>后台管理中心</title>




      <link href="/Public/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="/Tpl/Admin/css/AdminLTE.css" rel="stylesheet" type="text/css" />
      <!--[if lt IE 9]>
      <script src="/Public/js/html5shiv.min.js"></script>
      <script src="/Public/js/respond.min.js"></script>
      <!--<![endif]&ndash;&gt;-->
      <script src="/Public/js/jquery.min.js"></script>
      <script src="/Public/plugins/bootstrap/js/bootstrap.min.js"></script>
      <script src="/Public/js/common.js"></script>
      <script src="/Public/plugins/plugins/plugins.js"></script>



       <link rel="stylesheet" type="text/css" href="/Tpl/Admin/css/bootstrap/css/bootstrap.min.css">

       <link rel="stylesheet" type="text/css" href="/Tpl/Admin/css/datatable/dataTables.bootstrap.min.css">

       <script src="/Tpl/Admin/js/datatable/jquery.dataTables.js"></script>
       <script src="/Tpl/Admin/js/datatable/dataTables.bootstrap.min.js"></script>



      <style type="text/css">
		#preview{border:1px solid #cccccc; background:#CCC;color:#fff; padding:5px; display:none; position:absolute;}
	  </style>
   </head>
   <script>





function changeStatus(id,v){

    Plugins.waitTips({title:'信息提示',content:'正在操作，请稍后...'});


    $.post("<?php echo U('Admin/Agent/applyEdit');?>",{id:id,status:v},function(data,textStatus){

        if(data!=0){
            Plugins.setWaitTipsMsg({content:'操作成功',timeout:1000,callback:function(){
                location.reload();
            }});
        }else{

            Plugins.Tips({title:'信息提示',icon:'error',content:'操作失败!',timeout:1000});
            location.reload();

        }
    });
}

   </script>
   <body class='wst-page'>
   <div class="container-fluid">
       <div class='wst-page-content'>
           <div style="padding-bottom:4px;">

           </div>
           <div class='wst-page-content' id="one">
               <table id="applyLog" class="table table-striped table-bordered" cellspacing="0" width="100%">


                   <thead>
                   <tr>
                       <th>用户名</th>
                       <th>申请类型</th>
                       <th>申请金额</th>
                       <th>银行名称</th>
                       <th>银行卡号</th>
                       <th>姓名</th>
                       <th>开户行地址</th>
                       <th>电话</th>
                       <th>申请时间</th>
                       <th>状态</th>
                       <th>操作</th>
                   </tr>
                   </thead>






                   <tbody>

                   </tbody>
                   <tfoot>
                   <tr>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                       <th></th>
                   </tr>
                   </tfoot>

               </table>


           </div>

       </div>
   </div>
   </body>
   <script type="text/javascript" language="javascript" class="init">
    $(function (){


        listLog();


    });






    function  listLog(){
        var data=eval(<?php echo ($applyLog); ?>);
        $('#applyLog').DataTable( {
            data:data,
            columns: [
                {data: 'loginName'},
                {data: 'applyType'},
                {data: 'applyPrice'},
                {data: 'bankName'},
                {data: 'bankNum'},
                {data: 'bankUserName'},
                {data: 'bankAccess'},
                {data: 'tel'},
                {data: 'time'},
                {data: 'status'},
                {data: 'action'}


            ]
                ,
            "language": {
                "sProcessing": "处理中...",
                "sLengthMenu": "显示 _MENU_ 项结果",
                "sZeroRecords": "没有匹配结果",
                "sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
                "sInfoEmpty": "显示第 0 至 0 项结果，共 0 项",
                "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
                "sInfoPostFix": "",
                "sSearch": "搜索:",
                "sUrl": "",
                "sEmptyTable": "表中数据为空",
                "sLoadingRecords": "载入中...",
                "sInfoThousands": ",",
                "oPaginate": {
                    "sFirst": "首页",
                    "sPrevious": "上页",
                    "sNext": "下页",
                    "sLast": "末页"
                },
                "oAria": {
                    "sSortAscending": ": 以升序排列此列",
                    "sSortDescending": ": 以降序排列此列"
                }
            },
            "initComplete": function () {
                var api = this.api();

                api.columns().indexes().flatten().each( function ( i ) {

                    var column = api.column( i );
                    var select = $('<select class="form-control input-sm"><option value=""></option></select>')
                            .appendTo( $(column.footer()).empty() )
                            .on( 'change', function () {
                                var val = $.fn.dataTable.util.escapeRegex(
                                        $(this).val()
                                );
                                column
                                        .search( val ? '^'+val+'$' : '', true, false )
                                        .draw();
                            } );
                    column.data().unique().sort().each( function ( d, j ) {
                        select.append( '<option value="'+d+'">'+d+'</option>' );
                    } );
                } );
            }

        } );
    }
</script>
</html>